import service from '@/utils/request'
// import qs from 'qs'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    // 新增候选人信息
    candidateCreate (params) {
        return httpPost({
            url: '/tender/publicity/candidate/create',
            params
        })
    },
    // 更新候选人信息
    candidateUpdate (params) {
        return httpPost({
            url: '/tender/publicity/candidate/update',
            params
        })
    },

    // 根据id批量删除投诉受理人
    complainBatchDelete (params) {
        return httpPost({
            url: '/tender/publicity/complainBatchDelete',
            params
        })
    },
    // 新增公示内容
    contentCreate (params) {
        return httpPost({
            url: '/tender/publicity/content/create',
            params
        })
    },
    // 更新公示内容
    contentUpdate (params) {
        return httpPost({
            url: '/tender/publicity/content/update',
            params
        })
    },
    // 新增招标结果公示
    publicityCreate (params) {
        return httpPost({
            url: '/tender/publicity/create',
            params
        })
    },
    // 根据单据ID删除
    publicityDelete (applyId) {
        return httpGet({
            url: `/tender/publicity/delete/${applyId}`,
        })
    },
    // 根据单据ID查询
    publicityFindById (applyId) {
        return httpGet({
            url: `/tender/publicity/findById/${applyId}`,
        })
    },
    // // 招标结果公示分页
    // publicityListByEntity (params) {
    //     return httpPost({
    //         url: '/tender/publicity/listByEntity',
    //         params
    //     })
    // },
    // 获取招标结果公示
    publicityGetPublicity (applyId) {
        return httpGet({
            url: `/tender/publicity/getPublicity/${applyId}`,
        })
    },
    // 更新招标结果公示
    publicityUpdate (params) {
        return httpPost({
            url: '/tender/publicity/update',
            params
        })
    }
}

export default request